﻿@using KRM.Core

@model tblStore

@{
    ViewBag.Title = "SurveyStatistics";
}
<div class="fieldset">
    <div class="legend"><span>Survey Statistics</span></div>
    <form action="/Survey/SurveyStatistics" method="POST" style="margin:0" id="frSurveyStatistic">
        <div class="row-fluid">
            <div class="span1">
                Stores:
            </div>
            <div class="span3">
                <select id="ddlStores" name="storeid" class="input-block-level">
                    @Html.Raw(new Survey().StoreMenu())
                </select>
            </div>
            <div class="span1" >From: </div>
            <div class="span2">
                <div id="datetimepicker4" class="input-append">
                    <input data-format="MM/dd/yyyy" type="text" required="required"  value="@DateTime.Now.AddDays(-30).ToString("MM/dd/yyyy")" name="dfrom" style="width: 76%"/>
                    <span class="add-on">
                        <i data-time-icon="icon-time" data-date-icon="icon-calendar">
                        </i>
                    </span>
                </div>
            </div>
            <div class="span1">To: </div>
            <div class="span2">
                <div id="datetimepicker5" class="input-append">
                    <input data-format="MM/dd/yyyy" type="text" required="required" value="@DateTime.Now.ToString("MM/dd/yyyy")" name="dto" style="width: 76%"/>
                    <span class="add-on">
                        <i data-time-icon="icon-time" data-date-icon="icon-calendar"></i>
                    </span>
                </div>
            </div>
            <div class="span2"><button type="submit" class="btn btn-primary" id="btnStatistic">Statistics</button></div>
        </div>
    </form>
    <div id="SurveyResult"></div>

</div>